gtkborder: restore original struct definition
authorWilliam Hua <william.hua@canonical.com>
Thu, 17 Dec 2015 17:18:03 +0000 (12:18 -0500)
committerWilliam Hua <william.hua@canonical.com>
Thu, 17 Dec 2015 17:56:35 +0000 (12:56 -0500)
We're going to add back the original struct definition removed by
a6e4de28, because using the typedef breaks all sorts of things like
gtkmm and WebKit, and having separate struct definitions allows us to
change the types in GdkBorder from gint16s to gints without breaking
ABI.

gtk/gtkborder.h

index 6df53aac3eaa40b1bb3d68bb7f6afd84f5475bcd..adfa29e764acf4a7b0631f44bf31c3fb156d641b 100644 (file)
@@ -34,6 +34,8 @@
 
 G_BEGIN_DECLS
 
+typedef struct _GtkBorder GtkBorder;
+
 #define GTK_TYPE_BORDER (gtk_border_get_type ())
 
 /**
@@ -46,7 +48,13 @@ G_BEGIN_DECLS
  * A struct that specifies a border around a rectangular area
  * that can be of different width on each side.
  */
-typedef GdkBorder GtkBorder;
+struct _GtkBorder
+{
+  gint16 left;
+  gint16 right;
+  gint16 top;
+  gint16 bottom;
+};
 
 GDK_AVAILABLE_IN_ALL
 GType      gtk_border_get_type (void) G_GNUC_CONST;